package com.zzq.guli.service;

import com.zzq.guli.service.base.properties.AliProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;


@MapperScan(basePackages = "com.zzq.guli.service.edu.mapper.*")
@EnableFeignClients
@EnableDiscoveryClient
@Import(AliProperties.class)
@SpringBootApplication
public class ServiceEduApplication  extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ServiceEduApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class);
    }

}
